deleteRegistry
Type
function
Summary
Removes an entry from the Windows system registry.
Syntax
deleteRegistry(<keyPath>)
Description
Use the deleteRegistry function to uninstall a registry entry your application has previously installed.
To delete a subkey, use the setRegistry function to set the subkey's value to empty.
On Mac OS and Unix systems, the deleteRegistry function returns "not supported".
Be careful to use only carefully debugged entries with the deleteRegistry function., and be very certain you know all the ramifications of the entry you're removing. Removing entries from the Windows registry can cause the system to behave unexpectedly or stop functioning altogether.
Parameters
Name | Type | Description |
---|---|---|
keyPath | The keyPath parameter is the path to a registry entry. |
Examples
deleteRegistry("HKEY_CLASSES_ROOT\.txt\")
if not deleteRegistry(storedKey) then answer "Couldn't delete key."
Related
control structure: function
function: setRegistry, queryRegistry, platform
Compatibility and Support
Introduced
LiveCode 2.0
OS
windows
Platforms
desktop
server